// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** refreshAllCache POST /api/cache/refreshAll */
export async function refreshAllCacheUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/cache/refreshAll', {
    method: 'POST',
    ...(options || {}),
  })
}

/** refreshCacheByType POST /api/cache/refreshByType */
export async function refreshCacheByTypeUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.refreshCacheByTypeUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/cache/refreshByType', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
